<template>
    <h1>借款项目列表</h1>

    <BorrowAll v-slot="info" >
        <a href="#" @click="jump(info.id)" >借款</a>
    </BorrowAll>

</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
import BorrowAll from '../Borrow/BorrowAll.vue'

const router = useRouter()

const jump = (Id:string)=>{
    router.push({
        name:'UserBorrowAdd',
        params:{
            Id:Id
        }
    })
}


</script>